package com.ssy.lingxi.logistics.repository;

import com.ssy.lingxi.logistics.entity.LogisticsOrderDetail;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 物流单明细实体仓库
 * @author yzc
 * @version 2.0.0
 * @date 2020/7/21
 */
public interface LogisticsOrderDetailRepository extends JpaRepository<LogisticsOrderDetail, Long> {

    void deleteByOrderId(Long orderId);

    List<LogisticsOrderDetail> findAllByOrderId(Long orderId);
}